import { Component, OnInit } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { MyModalHelper } from '@core/my-modal.helper';
import { ActivatedRoute, Params, Router } from '@angular/router';
import { TriggerService } from '@core/routes-services/trigger.service';

@Component({
  selector: 'app-trigger-detail',
  templateUrl: './trigger-detail.component.html',
})
export class TriggerDetailComponent implements OnInit {

  triggerId: any;
  isLoading: boolean = true;
  index:any = 0
  constructor(
    private message: NzMessageService,
    private router: Router,
    private route: ActivatedRoute,
    private triggerService: TriggerService,
    private modalHelper: MyModalHelper,
  ) {
  }

  ngOnInit(): void {
    this.route.queryParams.forEach((params: Params) => {
      let triggerId = +params['triggerId'];
      this.triggerId = triggerId;
      this.isLoading = false
    });
  }

}
